package simple14.discount;

public class NewerDiscount extends MultyDiscount {

    public NewerDiscount(MultyDiscount nextMultyDiscount) {
        super(nextMultyDiscount);
    }

    @Override
    public int calculate(int money) {
        System.out.println("门店新客 '立减5元'");
        money = money -5;
        return super.calculate(money);
    }
}
